#ifndef MYTHREADADD_H
#define MYTHREADADD_H

#include <QWidget>
#include <QThread>
#include <QMutex>

class MyThreadAdd : public QThread
{
    Q_OBJECT
public:
    MyThreadAdd();
    MyThreadAdd(QWidget*parent);

    void run() override;

    static int num;
signals:
    void notify();
private:
    static QMutex mutex;
};

#endif // MYTHREADADD_H
